<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{$title}</title>
<script type="text/javascript" src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/bootstrap/css/bootstrap.min.css">
<script>
    function refreshVerify() 
    {
        var ts = Date.parse(new Date())/1000;  
        $('#verify_img').attr("src", "/index.php/captcha?id="+ts);
    }
</script>
</head>
<body>
<div class="container">
<form class="form-horizontal" method="post" action="index">
  <div class="form-group">
    <label for="adminname" class="col-sm-2 control-label">管理员</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="adminname" name="adminname" placeholder="请输入管理员">
    </div>
  </div>
  <div class="form-group">
    <label for="adminpwd" class="col-sm-2 control-label">密码</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="adminpwd" name="adminpwd" placeholder="请输入密码">
    </div>
  </div>
  <div class="form-group">
		<label for="verify" class="col-sm-2 control-label">验证码</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" id="verify" name="verify"
				   placeholder="请输入验证码">
		</div>
	</div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <img id="verify_img" src="{:captcha_src()}" alt="验证码" onclick="refreshVerify()">
        </div>
      </div>
	<!-- <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
    <div>{:captcha_img()}</div>
    </div>
  </div> -->
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <div class="checkbox">
        <label>
          <input type="checkbox" name="autoFlag" value="1"> 自动登录（一周自动登录）
        </label>
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">登录</button>
    </div>
  </div>
</form>
</div>
</body>
</html>